package com.qf.air.core;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author 何星宇
 * @version V1.0
 * @Date 2021/11/6 17:14
 */


@SpringBootApplication
@MapperScan(basePackages = "com.qf.air.core.mapper")
@EnableEurekaClient
@EnableFeignClients
public class AirCoreStartApp {
    public static void main(String[] args) {
        SpringApplication.run(AirCoreStartApp.class, args);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
